package itheima.com.zuoye.d02;

public abstract class Animals {
//    属性：品种(breed)、颜色(color)、名字(name)、年龄(age)
    String breed;
    String color;
    String name;
    int age;
    public void eat(){}

    public Animals(String breed, String color, String name, int age) {
        this.breed = breed;
        this.color = color;
        this.name = name;
        this.age = age;
    }
    public Animals() {
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Animals{" +
                "breed='" + breed + '\'' +
                ", color='" + color + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
